<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_AAB001_GROUP"
                         personType="PERSON_AAC031_12" :panel="panel">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount="2" :panel="panel">
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>死亡人员信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row :gutter="10">
                        <ep-date colspan="8" placeholder="请选择死亡日期" label="死亡日期"  rules="this.$localRules.DateCheck" name="aae138" :property="form.aae138"
                                 p="R"  :datas="{formData:form}" ></ep-date>
                        <ep-input  colspan="8" label="建国前老工人标识" name="aac081" :property="form.aac081" p="D"
                                  :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row>
                        <ep-title>请输入供养人员基本信息</ep-title>
                        <ep-table :data="tableData1" border rowDbClick>
                            <ep-table-column  editor="index" width="50" header="序号"></ep-table-column>
                            <ep-table-column sortable edited editor="text" name="aac002" header="社会保障号"></ep-table-column>
                            <ep-table-column sortable edited editor="text" name="aac003" header="姓名"></ep-table-column>
                            <ep-table-column sortable editor="select" edited codetype="AAC004" name="aac004" header="性别"></ep-table-column>
                            <ep-table-column sortable editor="select" edited codetype="BIC108" name="bic108" header="户粮关系"></ep-table-column>
                            <ep-table-column  sortable date-type="date" edited editor="date" format="yyyyMMdd" value-format="yyyyMMdd" name="aac006" header="出生日期"></ep-table-column>
                            <ep-table-column sortable editor="select" edited codetype="AAE144" name="aae144" header="供养关系"></ep-table-column>
                            <ep-table-column sortable editor="select" edited codetype="AAC086" name="aac086" header="孤寡标识"></ep-table-column>
                            <ep-table-column sortable editor="select" edited codetype="BIC109" name="bic109" header="是否散失劳动能力"></ep-table-column>
                            <ep-table-column header="操作" width="100" editor="button">
                                <template slot-scope="scope">
                                    <el-button type="text" size="mini" @click="deleteCurrentRow01(scope.row)">删除</el-button>
                                </template>
                            </ep-table-column>
                        </ep-table>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button size="medium" type="text" name="+增加" id="doAdd01" :datas="{tableData1: tableData1}"></ep-button>
                    </el-row>
                </el-form>
                <el-form :model="form"  :rules="rules">
                    <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel}"></ep-saveButton>
                    </el-row>
                </el-form>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/DependantsApprovalJS.js"></script>
